{template "member","header"}

<!-- header -->
<header class="header bg2 clearfix">
	<h3 class="fl"><a href="{MEMBER_PATH}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<span class="con">意见反馈</span>
</header>
<!-- / header -->
<div class="h_48"></div>

<!-- main -->
<main class="main">
<form action="" method="post" id="toSayForm">
	<label class="clearfix">
		<span>姓名：</span>
		<input type="text" class="text3" name="realname" value="<?=$info['realname'] ?: ''?>">
	</label>
	<label class="clearfix">
		<span>联系方式：</span>
		<input type="text" class="text3" name="qq" value="<?=$info['mobile'] ?: ''?>">
	</label>
	<label class="clearfix">
		<span>邮箱：</span>
		<input type="text" class="text3" name="email" value="<?=$info['email'] ?: ''?>">
	</label>
	<label class="clearfix">
		<span>留言：</span>
		<textarea class="textarea1" name="content" rows="3" placeholder="写下问题和反馈，我们将为您不断进行改进"></textarea>
	</label>
	<input type="button" name="dosubmit" class="btnSubmit3" value="提 交">
</form>
</main>
<!-- / main -->

<script type="text/javascript">
$(function() {
	$('.btnSubmit3').click(function(e) {
		console.log(123);
		var _data = $('#toSayForm').serializeArray();
		$.ajax({
			type: 'post',
			url: '/?m=member&c=other&a=feedback',
			data: _data,
			dataType: 'json',
			success: function(res) {
				console.info(res);
				if (res.status == 100) {
					alert_msg(res.desc, function() {
						location.href = '{MEMBER_PATH}';
					}, 5000);
				} else {
					alert_msg(res.desc);
				}
			}
		});
	});
});
</script>

{template "member","footer"}